package com.sicau.smarttraceplatform.config.security;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;
import java.util.Collections;

public class JWTAuthenticationToken extends UsernamePasswordAuthenticationToken {
    
    private static final long serialVersionUID = 1L;

    public JWTAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }


    @Override
    public Object getCredentials() {
        return super.getCredentials();
    }
 
    @Override
    public Object getPrincipal() {
        return super.getPrincipal();
    }
 
}
